package com.icinfo.wanandroid.core.http;

import com.icinfo.wanandroid.core.bean.BaseResponse;
import com.icinfo.wanandroid.core.bean.main.collect.FeedArticleListData;
import com.icinfo.wanandroid.core.http.api.GeeksApis;

import javax.inject.Inject;

import io.reactivex.Observable;

/**
 * Author: 胡高建
 * Comment: //TODO
 * Date: 2019-07-25 09:15
 */
public class HttpHelperImpl implements HttpHelper {
    private GeeksApis mGeeksApis;

    @Inject
    HttpHelperImpl(GeeksApis geeksApis) {
        mGeeksApis = geeksApis;
    }

    @Override
    public Observable<BaseResponse<FeedArticleListData>> getFeedArticleList(int pageNum) {
        return mGeeksApis.getFeedArticleList(pageNum);
    }
}
